<div ms-important="vm-qrcode" id="qrcode">
    <div class="user-r-title clearfix">
        <div class="common-title f-l">
            <a href="javascript:void(0)" class="field">{$data.page_title}</a>
        </div>
        <a  class="btn btn-primary btn-m f-r" id="btn_upload" ms-click="popCreateQrCode" style="position: relative; z-index: 1;">新增业务员</a>
    </div>
    <div class="user-r-content clearfix j-ajax-page">
        <div class="search clearfix" ms-important="vm-search">
            <div class="search-list">
                <span>时间</span>
                <input type="text" ms-duplex="@search_data.begin_time" id="begin_time" placeholder="{$data.begin_time}"> <span>-</span> <input type="text" ms-duplex="@search_data.end_time" id="end_time" placeholder="{$data.end_time}">
            </div>
            {if $data.bm_promoter_type eq 2 || $data.bm_promoter_type eq 3}
            <div class="search-list">
                <span>机构编号</span>
                <input type="text" ms-duplex="@search_data.login_name" placeholder="">
            </div>
            {/if}
            <div class="search-list">
                <span>业务员id</span>
                <input type="text" ms-duplex="@search_data.qrcode_id" placeholder="">
            </div>
            <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
        </div>
        <div class="ajax-block">
            <table class="uc-table">
                <tr style="border-bottom:none">
                    <td colspan="10" style="text-align:left;padding-left:15px;">汇总：<span style="padding-right:10px;">{$data.list_count} 人</span></td>
                </tr>
            </table>
            <table class="uc-table">
                <thead>
                    <tr>
                        <th>业务员ID</th>
                        <th>业务员邀请码</th>
                        <th>业务员名称</th>
                        <th>推广会员数</th>
                        <th>所属{$bm_two}编号</th>
                        <th>所属{$bm_two}名称</th>
                        <th>所属代理商编号</th>
                        <th>所属代理商名称</th>
                        <th>账户状态</th>
                        <th>创建时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach from="$data.list" item="l_item" }
                    <tr>
                        <td>{$l_item.id}</td>
                        <td>{$l_item.qrcode_sn}</td>
                        <td>{$l_item.name}</td>
                        <td>{$l_item.qrcode_user_num}<a href='{url r="user_two#users" p="bm_qrcode_id=$l_item.id"}' class="table-link">明细</a></td>
                        <td>{$l_item.p_login_name}</td>
                        <td>{$l_item.p_name}</td>
                        <td>{$l_item.qrcode_promoter_login_name}</td>
                        <td>{$l_item.qrcode_promoter_name}</td>
                        <td><span class="table-link" ms-click="changeCodeEffect({$l_item.id},$event)">{if $l_item.is_effect eq 1}正常{else}销户{/if}</span></td>
                        <td>{function name="to_date" v=$l_item.create_time}</td>
                        <td><a class="table-link" ms-click="viewQrCode('{$l_item.img}','{$l_item.name}')">查看二维码</a></td>
                    </tr>
                    {foreachelse}
                    <tr>
                        <td colspan="10">
                            <span>暂无数据</span>
                        </td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
            <div class="m-page clearfix">
                <div class="m-page-con">
                    {$data.page}
                </div>
            </div>
        </div>
    </div>
</div>